const fs = require('fs');
const path = require( 'path' );

let pathname = path.resolve(__dirname,'software');

if( fs.existsSync(pathname) ){
    console.log(`准备删除${path.basename(pathname)}目录`);
    let x = fs.rmdirSync(pathname);
    console.log(`删除成功`);
}